import { Doc } from 'prettier';
type Parents = {
    parent: Doc;
    childIndexInThisParent: number | undefined;
};
/**
 * @returns Boolean true means keep walking children and siblings, false means stop walking children
 *   and siblings. Returning false does not stop walking of aunts/uncles or ancestors.
 */
export declare function walkDoc(startDoc: Doc, 
/** Return something falsy to prevent walking of child docs */
debug: boolean, 
/** If this returns something falsy, none of the current node's children will be walked. */
callback: (currentDoc: Doc, parents: Parents[], index: number | undefined) => boolean | void | undefined, parents?: Parents[], index?: number | undefined): boolean;
export {};
